import React from 'react';
import styles from './NoticeTitle.less';

const NoticeTitle = ({ onMark = () => { }, count = 0 }) => {
  return (
    <div className={styles.title_con}>
      <span className={styles.title}>{`通知（${count}）`}</span>
      {count !== 0 && <span onClick={onMark} className={styles.mark}>全部标记为已读</span>}
    </div>
  );
}

export default NoticeTitle;